﻿namespace NuGetGallery.Migrations
{
    using System.Data.Entity.Migrations;

    public partial class PackageVulnerabilityAdvisoryUrlRenameAndRequired : DbMigration
    {
        public override void Up()
        {
            RenameColumn("dbo.PackageVulnerabilities", "ReferenceUrl", "AdvisoryUrl");
            AlterColumn("dbo.PackageVulnerabilities", "AdvisoryUrl", c => c.String(nullable: false));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.PackageVulnerabilities", "AdvisoryUrl", c => c.String());
            RenameColumn("dbo.PackageVulnerabilities", "AdvisoryUrl", "ReferenceUrl");
        }
    }
}
